package com.dpwx.framework.mvc;

import org.puremvc.java.multicore.patterns.facade.Facade;

import android.content.Intent;

public abstract class BaseFacade extends Facade {
	
	private BaseActivity mActivity;
	
	public BaseFacade(String key, BaseActivity activity) {
		super(key);
		this.mActivity = activity;
	}
	
	public abstract void startup(Intent intent);
	
	public void onDestroy() {
		Facade.removeCore(multitonKey);
	}
	
	public BaseActivity getActivity() {
		return this.mActivity;
	}
	
}
